package com.test.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author zhouxuwei
 *
 */
@Entity
@Table(name = "rcc_d_buildMeterHistoricalData")
public class BuildMeterHistoricalData {
    private Date planTime;
    private int buildMeterId;
    private BuildMeter buildMeter;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "buildMeterId",insertable=false,updatable=false)
    public BuildMeter getBuildMeter() {
		return buildMeter;
	}

    @Id
    @Column(name = "buildMeterId", unique = true, nullable = false)
	public int getBuildMeterId() {
		return buildMeterId;
	}

	public void setBuildMeterId(int buildMeterId) {
		this.buildMeterId = buildMeterId;
	}

	public void setBuildMeter(BuildMeter buildMeter) {
		this.buildMeter = buildMeter;
	}

	@Column(name = "planTime")
    public Date getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Date planTime) {
        this.planTime = planTime;
    }


    private Date readTime;

    @Column(name = "readTime")
    public Date getReadTime() {
        return readTime;
    }

    public void setReadTime(Date readTime) {
        this.readTime = readTime;
    }

    private Date equTime;

//    @Basic
    @Column(name = "equTime")
    public Date getEquTime() {
        return equTime;
    }

    public void setEquTime(Date equTime) {
        this.equTime = equTime;
    }

    private BigDecimal flow;

//    @Basic
    @Column(name = "flow")
    public BigDecimal getFlow() {
        return flow;
    }

    public void setFlow(BigDecimal flow) {
        this.flow = flow;
    }

    private BigDecimal heat;

//    @Basic
    @Column(name = "heat")
    public BigDecimal getHeat() {
        return heat;
    }

    public void setHeat(BigDecimal heat) {
        this.heat = heat;
    }

    private BigDecimal accFlow;

//    @Basic
    @Column(name = "accFlow")
    public BigDecimal getAccFlow() {
        return accFlow;
    }

    public void setAccFlow(BigDecimal accFlow) {
        this.accFlow = accFlow;
    }

    private BigDecimal accHeat;

    @Column(name = "accHeat")
    public BigDecimal getAccHeat() {
        return accHeat;
    }

    public void setAccHeat(BigDecimal accHeat) {
        this.accHeat = accHeat;
    }

    private BigDecimal seasonFlow;

    @Column(name = "seasonFlow")
    public BigDecimal getSeasonFlow() {
        return seasonFlow;
    }

    public void setSeasonFlow(BigDecimal seasonFlow) {
        this.seasonFlow = seasonFlow;
    }

    private BigDecimal seasonHeat;

    @Column(name = "seasonHeat")
    public BigDecimal getSeasonHeat() {
        return seasonHeat;
    }

    public void setSeasonHeat(BigDecimal seasonHeat) {
        this.seasonHeat = seasonHeat;
    }

    private BigDecimal supplyTemperature;

    @Column(name = "supplyTemperature")
    public BigDecimal getSupplyTemperature() {
        return supplyTemperature;
    }

    public void setSupplyTemperature(BigDecimal supplyTemperature) {
        this.supplyTemperature = supplyTemperature;
    }

    private BigDecimal returnTemperature;

    @Column(name = "returnTemperature")
    public BigDecimal getReturnTemperature() {
        return returnTemperature;
    }

    public void setReturnTemperature(BigDecimal returnTemperature) {
        this.returnTemperature = returnTemperature;
    }

    private BigDecimal temperatureDiff;

    @Column(name = "temperatureDiff")
    public BigDecimal getTemperatureDiff() {
        return temperatureDiff;
    }

    public void setTemperatureDiff(BigDecimal temperatureDiff) {
        this.temperatureDiff = temperatureDiff;
    }

    private BigDecimal workTime;

    @Column(name = "workTime")
    public BigDecimal getWorkTime() {
        return workTime;
    }

    public void setWorkTime(BigDecimal workTime) {
        this.workTime = workTime;
    }

    private BigDecimal battery;

    @Column(name = "battery")
    public BigDecimal getBattery() {
        return battery;
    }

    public void setBattery(BigDecimal battery) {
        this.battery = battery;
    }

    private Boolean isAlarm;

    @Column(name = "isAlarm")
    public Boolean getIsAlarm() {
		return isAlarm;
	}

	public void setIsAlarm(Boolean isAlarm) {
		this.isAlarm = isAlarm;
	}

    private Boolean isFault;

    @Column(name = "isFault")
    public Boolean getIsFault() {
		return isFault;
	}

	public void setIsFault(Boolean isFault) {
		this.isFault = isFault;
	}

    private Boolean isFirstRecord;

    @Column(name = "isFirstRecord")
    public Boolean getIsFirstRecord() {
		return isFirstRecord;
	}

	public void setIsFirstRecord(Boolean isFirstRecord) {
		this.isFirstRecord = isFirstRecord;
	}

    private Boolean isZeroClockRecord;

    
    @Column(name = "isZeroClockRecord")
    public Boolean getIsZeroClockRecord() {
		return isZeroClockRecord;
	}

	public void setIsZeroClockRecord(Boolean isZeroClockRecord) {
		this.isZeroClockRecord = isZeroClockRecord;
	}


    private String flowState;

    @Column(name = "flowState")
    public String getFlowState() {
        return flowState;
    }

    public void setFlowState(String flowState) {
        this.flowState = flowState;
    }

    private BigDecimal theoryFlow;
    private BigDecimal theoryFlowPercent;

    @Column(name = "theoryFlow")
    public BigDecimal getTheoryFlow() {
        return theoryFlow;
    }

    public void setTheoryFlow(BigDecimal theoryFlow) {
        this.theoryFlow = theoryFlow;
    }

    @Column(name = "theoryFlowPercent")
    public BigDecimal getTheoryFlowPercent() {
        return theoryFlowPercent;
    }

    public void setTheoryFlowPercent(BigDecimal theoryFlowPercent) {
        this.theoryFlowPercent = theoryFlowPercent;
    }

    private String alarmSettingIds;
    private String faultTypeIds;

    @Column(name = "alarmSettingIds")
    public String getAlarmSettingIds() {
        return alarmSettingIds;
    }

    public void setAlarmSettingIds(String alarmSettingIds) {
        this.alarmSettingIds = alarmSettingIds;
    }

    @Column(name = "faultTypeIds")
    public String getFaultTypeIds() {
        return faultTypeIds;
    }

    public void setFaultTypeIds(String faultTypeIds) {
        this.faultTypeIds = faultTypeIds;
    }
}